package com.hbjycl.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hbjycl.dao.AdminDao;
import com.hbjycl.entity.Admin;
import com.hbjycl.service.AdminService;

@Service
public class AdminServiceImpl extends BaseServiceImpl<Admin, String> implements AdminService
{
    @Resource
    private AdminDao adminDao;
    
    @Resource
    public void setBaseDao(AdminDao adminDao)
    {
        super.setBaseDao(adminDao);
    }
    
    @Override
    public boolean isExistByUsername(String username)
    {
        return adminDao.isExistByUsername(username);
    }
    
    @Override
    public Admin getAdminByUsername(String username)
    {
        return adminDao.getAdminByUsername(username);
    }


    @Override
    public List<Admin> getLockedAccounts()
    {
        return adminDao.getLockedAccounts();
    }

}
